﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ManagerContact.ascx.cs"
    Inherits="ServicesDirectory.UserControl.ManagerContact" %>
<%@ Register Src="LookupContactManager.ascx" TagName="LookupContactManager" TagPrefix="uc1" %>



<script type="text/javascript">


  
         $(document).ready(function() {
        setTimeout("hide()", 5000);
        });
         
    function hide() {
        $(document).ready(function() {
           $("#<%=lblannounce.ClientID %>").hide();
        });
    	}
        
</script>


        <div class="bgManager">
            <div class="TitleManarer">
                <asp:Label runat="server" ID="lblTitleContact"></asp:Label>
            </div>
            <div>
                <div id="tab1" class="tab_content" style="display: block;">
                    <div class="ManagerContentBorder">
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            First Name <span class="mandatoryFields">*</span>
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtFirstName" Width="99%"></asp:TextBox><asp:RequiredFieldValidator
                                ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtFirstName"
                                ValidationGroup="error"></asp:RequiredFieldValidator>
                        </div>
                        <div class="titleCol1">
                            Manager Name
                        </div>
                        <div class="titleCol2">
                            <asp:Label CssClass="lookUpName" runat="server" Width="120px" Text="lookup name"
                                ID="lblManagerName"></asp:Label>
                            <div class="lookUp">
                                <asp:LinkButton runat="server" ID="lookup" Text="Lookup" OnClick="Lookup_Click"></asp:LinkButton>
                            </div>
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            Surname <span class="mandatoryFields">*</span>
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtSurname" Width="99%"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="error"
                                ControlToValidate="txtSurName" ErrorMessage="*"></asp:RequiredFieldValidator>
                        </div>
                        <div class="titleCol1">
                            Contact Type <span class="mandatoryFields">*</span>
                        </div>
                        <div class="titleCol2">
                            <asp:DropDownList runat="server" Width="98%" ID="cboContactType" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                                ValidationGroup="error" ControlToValidate="cboContactType"></asp:RequiredFieldValidator>
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            Known As
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtKnownAs" Width="99%"></asp:TextBox>
                        </div>
                        <div class="titleCol1">
                            Best Contact Method
                        </div>
                        <div class="titleCol2">
                            <asp:DropDownList runat="server" Width="98%" ID="cboBestContact" />
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            Office Phone
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtOfficePhone" Width="99%"></asp:TextBox>
                        </div>
                        <div class="titleCol1">
                            Job Role
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtJobRole" Width="99%"></asp:TextBox>
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            Mobile Phone
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtMobilePhone" Width="99%"></asp:TextBox>
                        </div>
                        <div class="titleCol1">
                            Workbase
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtWorkbase" Width="99%"></asp:TextBox>
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            ST HomePhone
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtStHomePhone" Width="99%"></asp:TextBox>
                        </div>
                        <div class="titleCol1">
                            Job Title
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtJobTitle" Width="99%"></asp:TextBox>
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            Email Address
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtEmail" Width="99%"></asp:TextBox>
                        </div>
                        <div class="titleCol1">
                            Is Active?
                        </div>
                        <div class="titleCol2">
                            <asp:CheckBox runat="server" ID="chkActive" />
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="ContactButton">
                            <asp:Button runat="server" Width="60px" ID="cmdSave" Text="Save" Font-Size="XX-Small"
                                Style="height: 21px" OnClick="CmdSave_Click" />
                            <asp:Button runat="server" Width="60px" ID="cmdBack" Text="Back" Font-Size="XX-Small"
                                OnClick="CmdBack_Click" />
                        </div>
                        <div style="margin-top: 10px; margin-right: 8px; width: 300px; float: right">
                            <asp:Label runat="server" Visible="false" ID="lblannounce"></asp:Label>
                        </div>
                        <div class="spaceManager">
                        </div>
                    </div>
                </div>
            </div>
            <asp:Panel ID="lookupc" CssClass="web_dialog" Visible="false" runat="server">
                <uc1:LookupContactManager ID="LookupContactManager1" runat="server" />
            </asp:Panel>
        </div>
       
